<nz-alert nzType="info" [nzMessage]="innerTemplate" nzShowIcon [ngStyle]="{ 'marginBottom': '16px'}">
  <ng-template #innerTemplate>
    <span class="help-text">发布时以 LATEST 版本的配置和代码作为基础进行发布，生成新版本。</span>
  </ng-template>
</nz-alert>
<nzi-form [formName]="publishForm" #publishFormComponent>
  <form nz-form [formGroup]="publishForm">
    <!-- 添加防CSRF验证字段 -->
    <input type="hidden" formControlName="timestamp" />
    <input type="hidden" formControlName="nonce" />
    <nz-form-item>
      <nz-form-label>函数名称</nz-form-label>
      <nz-form-control>
        {{fcsInstance?.functionName || '--'}}
      </nz-form-control>
    </nz-form-item>
    <nz-form-item>
      <nz-form-label>描述</nz-form-label>
      <nz-form-control>
        <textarea nz-input
                  rows="4"
                  formControlName="description"
                  placeholder="请输入版本描述" [disabled]="disableDes"></textarea>
        <nz-form-explain [ngStyle]="{ 'color': (publishForm.get('description').dirty&& publishForm.get('description').errors) ? '#F04134':''}" class="help-text">
        最大支持500个英文字母、数字、空格、逗号、句号、中文</nz-form-explain>
      </nz-form-control>
    </nz-form-item>
  </form>
</nzi-form>
